package demo_table.bean;

/**
 * 学生类
 */
public class StudentBean {
    /**
     * 学生编号
     */
    private Integer studentId;
    /**
     * 姓名
     */
    private String name;
    /**
     * 性别
     */
    private String  gender;
    /**
     * 年龄
     */
    private  int age;
    /**
     * 所属班级
     */
   private ClassBean classBean;

   public StudentBean(){

   }

    public StudentBean(Integer studentId, String name, String gender, int age, ClassBean classBean) {
        this.studentId = studentId;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.classBean = classBean;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public ClassBean getClassBean() {
        return classBean;
    }

    public void setClassBean(ClassBean classBean) {
        this.classBean = classBean;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "studentId=" + studentId +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", classBean=" + classBean +
                '}';
    }
}
